using UnityEngine;
using System.Collections;

public class ItemShopNPC : DialogueNPC {	
	protected override void ClickAction() {
		ShopBuyGui g;
		g = (ShopBuyGui)this.gameObject.GetComponent (typeof(ShopBuyGui));
		
		if (g == null) {
			g = (ShopBuyGui)this.gameObject.AddComponent (typeof(ShopBuyGui));
		}
		
		if (g == null) {
			return;
		}
		
		if (g.shop == null) {
			ItemShop s;
			
			s = new ItemShop();
			
			/* TODO: load from a constant list or something */
			s.AddItem("BerryRed");
			s.AddItem("BerryBlue");
			s.AddItem("BerryGreen");
			
			
			g.shop = s;
		}
	}
}
